<?php

namespace App\Http\Requests;

use App\Http\Requests\Request;

class CompanyPostRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'required|max:255',
            'signature'=>'required|max:255',
//            'intro'=> 'required|min:255',
            'email'=> 'required|email',
            'phone'=> 'required',
            'develop'=>'required|numeric',
            'scale'=>'required|numeric',
            'user_id'=>'required|numeric',
            'tel'=>'required',
            'zip_code'=>'required',
            'bus_route'=>'required',
            'blademode'=>'required',
        ];
    }
}
